<script type="text/javascript" src="<?php echo __ADMIN__?>js/admin_fun.js"></script>
<script type="text/javascript">
	var BASE_URL = "<?php echo str_replace('/admanager/', '', base_url()); ?>";
</script>
<nav class="navbar navbar-inverse navbar-fixed-top header">
	<div class="container-fluid">
		<div class="navbar-header">
			<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
				<span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span>
			</button>
			<a class="navbar-brand color_white" href="javascript:void(0);">网站管理系统</a>
		</div>
		<div id="navbar" class="navbar-collapse collapse">
			<ul class="nav navbar-nav">
			<?php foreach ($main_menus['main'] as $main_key => $main_val){ ?>
				<li class="<?php echo $main_val['class'];?>"><a href="<?php echo site_url($main_val['url'])?>"><?php echo $main_val['title']?></a></li>
			<?php } ?>		
			</ul>
			<div class="pull-right user_bar">
				<ul>
					<li role="presentation" class="dropdown"><a class="dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">
					<i class="glyphicon glyphicon-user"><?php echo getUsername();?></i>
					<span class="caret" style="color:#fff"></span>
					</a>
						<ul class="dropdown-menu">
							<li><a href="<?php echo site_url('member/editpass')?>">修改密码</a></li>
							<li><a href="<?php echo site_url('authentication/logout')?>">退出</a></li>
						</ul></li>
				</ul>
			</div>
		</div>
	</div>
</nav>